package com.project.personnel.controller;

import com.project.personnel.entity.Rewordrules;
import com.project.personnel.service.RewordrulesService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/rewordrules")
public class RewordrulesController {
    @Resource
    private RewordrulesService rewordrulesService;
    @GetMapping("/rewordrulesCha")
    public List<Rewordrules> rewordrulesCha(){
        return rewordrulesService.list();
    }
    @PutMapping("/rewordrulesUpdate")
    public boolean rewordrulesUpdate(@RequestBody Rewordrules rewordrules){
        return rewordrulesService.updateById(rewordrules);
    }
}
